/*
 * @Author: QinJiu
 * @Date: 2022-07-20 10:09:55
 * @LastEditors: Qinjiu
 * @LastEditTime: 2023-01-06 18:40:13
 * @Description:
 */
import Vue from "vue";
import SvgIcon from "@/components/SvgIcon"; // svg component

// register globally
Vue.component("SvgIcon", SvgIcon);

const req = require.context("./svg", false, /\.svg$/);
const requireAll = (requireContext) =>
  requireContext.keys().map(requireContext);
console.log(requireAll(req));
